home *** CD-ROM | disk | FTP | other *** search
-
- public _A5init
- public _getmyA5
- public _setA5
- public _int_off
- public _int_on
-
- bss int_save,4
-
-
- cseg
-
- _A5init
- lea aGlobal,a0
- move.l a5,(a0)
- rts
-
-
- _getmyA5
- move.l a5,d0 ; return old a5 (C)
- move.l aGlobal,a5
- rts
-
- _setA5
- move.l 4(a7),a5
- rts
-
- aGlobal
- dc.l $0
-
- _int_off:
- move.w sr,d0
- andi.w #$600,d0
- move.w d0,int_save
- ori.w #$600,sr
- rts
-
- _int_on:
- move.w sr,d0
- andi.w #$7077,d0
- or.w int_save,d0
- move.w d0,sr
- rts
- end
-